package com.king.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author liukai
 */
@Data
public class RoleDTO {

    @NotBlank(message = "角色名称不能为空")
    @Length(max = 10, message = "角色名称长度不能超过10")
    private String name;

}
